const TOKEN_NAME = 'PROJECT_TOKEN'
type TokenType = string

export class Auth {
  private constructor(){
    throw `class ${Auth.name} 不可构造`
  }
  static get(){
    return uni.getStorageSync<TokenType>(TOKEN_NAME)
  }
  static set(token: TokenType){
    return uni.setStorageSync(TOKEN_NAME, token)
  }
  static remove(){
    return uni.removeStorageSync(TOKEN_NAME)
  }
}